cmake_minimum_required(VERSION 2.8)

project(demo)

include_directories(src src/bsp src/common)

aux_source_directory(src        SRC_LIST1)
aux_source_directory(src/bsp    SRC_LIST2)
aux_source_directory(src/common SRC_LIST3)

add_executable(main ${SRC_LIST1} ${SRC_LIST2} ${SRC_LIST3})

set (EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

